package com.songshuai.pangu.api.service;

import com.songshuai.webapi.baseapi.model.custminiprogram.YixueBaseCity;
import com.songshuai.pangu.api.model.base.YixueBaseDictionary;

import java.util.List;

/**
 * @Author: lhx
 * @Date: 2019/3/22 15:45
 */
public interface YixueBaseDictionaryService {

    /**
     * 根据类型查询
     * @param type
     * @return
     */
    List<YixueBaseDictionary> queryByType(Integer type);


    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    YixueBaseDictionary queryDetail(Integer id);

    /**
     * 根据城市父id查询省市区
     * @param pid
     * @return
     */
    List<YixueBaseCity> queryAreaByParentId(Integer pid);

}
